package com.atguigu.gmall.product.mapper;

import com.atguigu.gmall.product.entity.BaseCategory1;
import com.atguigu.gmall.product.vo.CategoryTreeVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Entity com.atguigu.gmall.product.entity.BaseCategory1
 */
@Repository
public interface BaseCategory1Mapper extends BaseMapper<BaseCategory1> {

    List<CategoryTreeVo> getCategoryTree();

    CategoryTreeVo getCategoryTreeByCId(Long cId);
}




